/**
 * Authority domain class.
 */
class Role {

    static hasMany = [users: User]

    /** description */
    String description
    /** ROLE String */
    String authority

    static constraints = {
        authority(nullable:false, unique:true)
        description(nullable:false, unique:true)
    }

    String toString() {
        return "${description}"
    }

}
